package com.pucong.gitee.database.backup.business.service.cover;

import com.pucong.gitee.database.backup.common.entity.service.ServiceComputer;
import com.pucong.gitee.database.backup.common.entity.service.dto.ServiceComputerLoginDto;
import com.pucong.gitee.database.backup.common.entity.service.dto.ServiceComputerSaveDto;
import org.mapstruct.Mapper;

/**
 * @author $pucong
 * @url https://gitee.com/pucong
 * @create 2022.01.11
 */
@Mapper(componentModel = "spring")
public interface ComputerServiceBeanConvert {

    /**
     * dto转do
     * @return
     */
    ServiceComputer dto2do(ServiceComputerSaveDto dto);

    ServiceComputerLoginDto do2loginDto(ServiceComputer dto);

}
